Gikam.extend(coreLog.searchPage, {

    getGridParam: function () {
        var _this = this;
        return {
            type: 'grid',
            page: true,
            id: 'core-log-search-list-grid',
            url: coreLog.baseUrl + '/queries/searchable',
            generalButtonGroup: ['refresh', 'config'],
            genericQueryFields: [{
                field: 'name'
            }, {
                field: 'module'
            }],
            columns: coreLog.getSearchListColumns(),
            toolbar: [{
                type: 'button',
                text: 'T_CORE_LOG.VIEW.DETAIL',
                icon: 'add',
                onClick: function () {
                    let activedRow = Gikam.getComp("core-log-search-list-grid").getActivedRow();
                    if (Gikam.isEmpty(activedRow)){
                        Gikam.alert('GIKAM.TIP.CHOOSE_AT_LEAST_ONE_ITEM');
                        return;
                    }
                    Gikam.create('modal', {
                        width: 600,
                        height: 500,
                        title : 'T_CORE_LOG.VIEW.DETAIL',
                        url : coreLog.pageUrl + '/detail' + Gikam.param({
                            id : activedRow.id
                        }),
                    })
                }
            }]
        }
    },
})